<!DOCTYPE html>



  


<html class="theme-next gemini use-motion" lang="">
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">

<script src="//cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
<link href="//cdn.bootcss.com/pace/1.0.2/themes/pink/pace-theme-flash.css" rel="stylesheet">


	







<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/blog/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/blog/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/blog/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/blog/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT">





  <link rel="alternate" href="/blog/atom.xml" title="WhiteHat" type="application/atom+xml">






<meta name="description" content="键盘 Ctrl+F 可以筛选 指令  目录 GM 常用命令 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60">
<meta property="og:type" content="article">
<meta property="og:title" content="GM 常用命令（置顶）">
<meta property="og:url" content="https://whitehat666.gitee.io/blog/8895/06/27/hello-world/index.html">
<meta property="og:site_name" content="WhiteHat">
<meta property="og:description" content="键盘 Ctrl+F 可以筛选 指令  目录 GM 常用命令 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60">
<meta property="og:locale" content="default">
<meta property="og:updated_time" content="2018-11-20T11:48:16.354Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="GM 常用命令（置顶）">
<meta name="twitter:description" content="键盘 Ctrl+F 可以筛选 指令  目录 GM 常用命令 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/blog/',
    scheme: 'Gemini',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://whitehat666.gitee.io/blog/8895/06/27/hello-world/">




<script>
    (function(){
        if(''){
            if (prompt('请输入文章密码') !== ''){
                alert('密码错误！');
                history.back();
            }
        }
    })();
</script>
  <title>GM 常用命令（置顶） | WhiteHat</title>
  








</head>

<body itemscope="" itemtype="http://schema.org/WebPage" lang="default">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope="" itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/blog/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">WhiteHat</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-首页">
          <a href="https://whitehat666.gitee.io/blog/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-目录">
          <a href="/blog/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br>
            
            目录
          </a>
        </li>
      
        
        <li class="menu-item menu-item-留言板">
          <a href="/blog/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br>
            
            留言板
          </a>
        </li>
      
        
        <li class="menu-item menu-item-添加群聊(联系博主)">
          <a href="https://discord.gg/A5G4KfE" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br>
            
            添加群聊(联系博主)
          </a>
        </li>
      

      
        <li class="menu-item menu-item-search">
          
            <a href="javascript:;" class="popup-trigger">
          
            
              <i class="menu-item-icon fa fa-search fa-fw"></i> <br>
            
            搜索
          </a>
        </li>
      
    </ul>
  

  
    <div class="site-search">
      
  <div class="popup search-popup local-search-popup">
  <div class="local-search-header clearfix">
    <span class="search-icon">
      <i class="fa fa-search"></i>
    </span>
    <span class="popup-btn-close">
      <i class="fa fa-times-circle"></i>
    </span>
    <div class="local-search-input-wrapper">
      <input autocomplete="off" placeholder="搜索..." spellcheck="false" type="text" id="local-search-input">
    </div>
  </div>
  <div id="local-search-result"></div>
</div>



    </div>
  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope="" itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://whitehat666.gitee.io/blog/blog/8895/06/27/hello-world/">

    <span hidden itemprop="author" itemscope="" itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Whitehat">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="https://i.loli.net/2018/11/13/5be9fdb6b566a.jpeg">
    </span>

    <span hidden itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="WhiteHat">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">GM 常用命令（置顶）</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="8895-06-27T12:00:25+08:00">
                8895-06-27
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  1.5k
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  6
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>键盘 Ctrl+F 可以筛选 指令</p>
<h2 id="目录"><a href="#目录" class="headerlink" title="目录"></a>目录</h2><h3 id="GM-常用命令"><a href="#GM-常用命令" class="headerlink" title="GM 常用命令"></a>GM 常用命令</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br></pre></td><td class="code"><pre><span class="line">.instance unbind all 清理CD</span><br><span class="line"></span><br><span class="line">.instance unbind xx     ：清理目标单独FB CD </span><br><span class="line"></span><br><span class="line">xx = 地图ID  地图ID 进入副本搜索.gps  map:xx  会显示 </span><br><span class="line"></span><br><span class="line">.instance unbind xx 1      xx = 地图ID    清理目标单独FB CD  英雄模式 </span><br><span class="line"></span><br><span class="line">.npc add item XXX  增加物品到NPC身上</span><br><span class="line"></span><br><span class="line">删除NPC</span><br><span class="line"></span><br><span class="line">.npc del</span><br><span class="line"></span><br><span class="line">隐身</span><br><span class="line"></span><br><span class="line">.gm visible on</span><br><span class="line"></span><br><span class="line">.gm visible off</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">.npc inf 提取BOSS信息</span><br><span class="line"></span><br><span class="line">.respawn 重置BOSS</span><br><span class="line"></span><br><span class="line">.npc add xxxx 增加NPC</span><br><span class="line"></span><br><span class="line">.npc add item xxx NPC增加物品</span><br><span class="line"></span><br><span class="line">.gm on 开启GM模式</span><br><span class="line"></span><br><span class="line">.gob near 搜索建筑物ID </span><br><span class="line"></span><br><span class="line">.gob add 建筑物 添加 </span><br><span class="line"></span><br><span class="line">.gm off 关闭GM模式</span><br><span class="line"></span><br><span class="line">.levelup 69  .level -10 为目标(或自己) 增加89级，数字自己调， (最好不要超过90 容易出错)</span><br><span class="line"></span><br><span class="line">.modify money 5000000  为目标(或自己) 数字是以铜为单位的，要点下自己人物头像</span><br><span class="line"></span><br><span class="line">.additem # 增加物品代码为#的物品到所选玩家背包</span><br><span class="line"></span><br><span class="line">.additem 23162           36格包包</span><br><span class="line"></span><br><span class="line">.honor add 12312323      增加荣誉</span><br><span class="line"></span><br><span class="line">.damage 数字 直接造成伤害 要打10000 就输入 .damage 10000</span><br><span class="line"></span><br><span class="line">.start 脱离卡死（回城）</span><br><span class="line"></span><br><span class="line">………………封号指令     .b p 角色名 99d 脚本刷金  </span><br><span class="line"></span><br><span class="line">.unb p 角色名</span><br><span class="line"></span><br><span class="line">.modify命令：</span><br><span class="line"></span><br><span class="line">.modify money 999999999    为目标(或自己) 数字是以铜为单位的，要点下自己人物头像</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">.learn 44140 鱼叉冲浪</span><br><span class="line"></span><br><span class="line">.gm on 开启GM模式</span><br><span class="line"></span><br><span class="line">.gm off 关闭GM模式</span><br><span class="line"></span><br><span class="line">.npc add 600006 增加npc</span><br><span class="line"></span><br><span class="line">.npc add item xxxx 增加物品</span><br><span class="line"></span><br><span class="line">.npc del item xxxx 删除物品</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">.ser res 200 重启</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">.quest complete 秒任务</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">.modify speed 30+速度</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">.lookup spell  比如.lookup spell 亡灵意志 找到其代码</span><br><span class="line"></span><br><span class="line">然后用.learn命令 学习</span><br><span class="line"></span><br><span class="line">.gob near 提取 物体ID</span><br><span class="line"></span><br><span class="line">.gob del xxx 删除草药或者矿石</span><br><span class="line"></span><br><span class="line">.mute 禁言</span><br><span class="line"></span><br><span class="line">.quest complete 任务</span><br><span class="line"></span><br><span class="line">.quest add 添加任务</span><br><span class="line"></span><br><span class="line">.learn 40733 无限无敌</span><br><span class="line"></span><br><span class="line">.achievement add 获得成就</span><br><span class="line"></span><br><span class="line">http://db.duowan.com/wow/npc-2198.html 查找NPC代码</span><br><span class="line"></span><br><span class="line">复活</span><br><span class="line">/g .revive</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">.go 16222.1 16252.1 12.5872 1     传送自己到GM岛</span><br><span class="line"></span><br><span class="line">.announce 系统消息</span><br><span class="line"></span><br><span class="line">.modify scale 10 变大变小</span><br><span class="line"></span><br><span class="line">ICC 声望 .modify rep 1156 100000</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">.damage 数字 直接造成伤害</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">.gps 显示角色或生物的坐标(x,y,z) 地图标号和地区 </span><br><span class="line"></span><br><span class="line">.go $x $y $z $mapid 转到对应map的指定坐标(x,y,z)处</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">搜索物品  .lookup item</span><br><span class="line"></span><br><span class="line">.reset stats 重置目标所有状态</span><br><span class="line"></span><br><span class="line">传送 .appear  xx </span><br><span class="line"></span><br><span class="line"></span><br><span class="line">xx = 角色名称</span><br><span class="line"></span><br><span class="line">.summon 拉人</span><br><span class="line"></span><br><span class="line">隐身 .gm visible on/off</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">.achievement add 成就</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">.learn 44140    鱼叉冲浪</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">.modify speed 10</span><br><span class="line"></span><br><span class="line">.ban playeraccount 角色名 99d  违规99天</span><br><span class="line"></span><br><span class="line">.npc info 查找NPC ID</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">.account 账号管理  </span><br><span class="line">                   </span><br><span class="line">.account create 创建账号 </span><br><span class="line">   </span><br><span class="line">.account delete 删除账号     </span><br><span class="line">        </span><br><span class="line">.account lock 锁定账号</span><br><span class="line"></span><br><span class="line">.account onlinelist 显示在线账号</span><br><span class="line"></span><br><span class="line">.account password 显示账号密码</span><br><span class="line"></span><br><span class="line">.account set addon 设置账号资料片类型</span><br><span class="line"></span><br><span class="line">.account set gmlevel 设置账号GM级别</span><br><span class="line"></span><br><span class="line">.account set password 设置账号密码</span><br><span class="line"></span><br><span class="line">.announce 系统消息</span><br><span class="line"></span><br><span class="line">.aura 为自己添加BUFF</span><br><span class="line"></span><br><span class="line">.ban account 禁封账号</span><br><span class="line"></span><br><span class="line">.ban character 角色</span><br><span class="line"></span><br><span class="line">.ban ip IP地址</span><br><span class="line"></span><br><span class="line">.baninfo account 被封账号信息</span><br><span class="line"></span><br><span class="line">.baninfo character</span><br><span class="line"></span><br><span class="line">.baninfo ip</span><br><span class="line"></span><br><span class="line">.banlist account</span><br><span class="line"></span><br><span class="line">.banlist character</span><br><span class="line"></span><br><span class="line">.banlist ip</span><br><span class="line"></span><br><span class="line">.bank 打开银行</span><br><span class="line"></span><br><span class="line">.cast 施放法术</span><br><span class="line"></span><br><span class="line">.cast back 使目标对你施放法术</span><br><span class="line"></span><br><span class="line">.cast dist 施法距离</span><br><span class="line"></span><br><span class="line">.cast self 对自己施放法术</span><br><span class="line"></span><br><span class="line">.cast target 目标施放法术</span><br><span class="line"></span><br><span class="line">.character customize 使玩家重新设定外观与名字</span><br><span class="line"></span><br><span class="line">.character delete  删除角色</span><br><span class="line"></span><br><span class="line">.character level 角色级别</span><br><span class="line"></span><br><span class="line">.character rename 使玩家重新命名</span><br><span class="line"></span><br><span class="line">.character reputation 角色声望</span><br><span class="line"></span><br><span class="line">.combatstop </span><br><span class="line"></span><br><span class="line">.commands 命令列表</span><br><span class="line"></span><br><span class="line">.cooldown 使法术冷却时间结束</span><br><span class="line"></span><br><span class="line">.damage 造成伤害</span><br></pre></td></tr></table></figure>
<h3 id="DEBUG模式测试FWQ"><a href="#DEBUG模式测试FWQ" class="headerlink" title="DEBUG模式测试FWQ"></a>DEBUG模式测试FWQ</h3><figure class="highlight plain"><figcaption><span>轻易不要尝试</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">.debug anim</span><br><span class="line"></span><br><span class="line">.debug arena 调试竞技场</span><br><span class="line"></span><br><span class="line">.debug bg 调试战场可以一个人进入</span><br><span class="line"></span><br><span class="line">.debug getvalue </span><br><span class="line"></span><br><span class="line">.debug Mod32Value</span><br><span class="line"></span><br><span class="line">.debug play cinematic</span><br><span class="line"></span><br><span class="line">.debug play movie</span><br><span class="line"></span><br><span class="line">.debug play sound</span><br><span class="line"></span><br><span class="line">.debug setvalue</span><br><span class="line"></span><br><span class="line">.debug update</span><br></pre></td></tr></table></figure>
<h3 id="实用功能"><a href="#实用功能" class="headerlink" title="实用功能"></a>实用功能</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">.app 传动到目标玩家身旁</span><br><span class="line"></span><br><span class="line">.gps 显示自己的位置</span><br><span class="line"></span><br><span class="line">.go c xxx xxx代表怪物GUID</span><br><span class="line"></span><br><span class="line">.guid 工会</span><br><span class="line"></span><br><span class="line">.guild create 创建</span><br><span class="line"></span><br><span class="line">.guild delete 删除</span><br><span class="line"></span><br><span class="line">.guild invite 邀请</span><br><span class="line"></span><br><span class="line">.guild rank </span><br><span class="line"></span><br><span class="line">.guild uninvite 踢出</span><br><span class="line"></span><br><span class="line">.lookup area 查找地区</span><br><span class="line"></span><br><span class="line">.lookup creature 生物</span><br><span class="line"></span><br><span class="line">.lookup event 事件</span><br><span class="line"></span><br><span class="line">.lookup faction 阵营</span><br><span class="line"></span><br><span class="line">.lookup item 装备</span><br><span class="line"></span><br><span class="line">.lookup itemset 套装</span><br><span class="line"></span><br><span class="line">.lookup object 物体</span><br><span class="line"></span><br><span class="line">.lookup player account 账号.</span><br><span class="line"></span><br><span class="line">.lookup player email 邮箱</span><br><span class="line"></span><br><span class="line">.lookup player ip </span><br><span class="line"></span><br><span class="line">.lookup quest 任务</span><br><span class="line"></span><br><span class="line">.lookup skill 商业技能</span><br><span class="line"></span><br><span class="line">.lookup spell 法术</span><br><span class="line"></span><br><span class="line">.lookup taxinode </span><br><span class="line"></span><br><span class="line">.lookup tele</span><br><span class="line"></span><br><span class="line">.maxskill 技能熟练度最大</span><br><span class="line"></span><br><span class="line">.modify arena  更改竞技场点数</span><br><span class="line"></span><br><span class="line">.modify speed 调节所有速度</span><br><span class="line"></span><br><span class="line">.modify bit  </span><br><span class="line"></span><br><span class="line">.modify bwalk</span><br><span class="line"></span><br><span class="line">.modify drunk</span><br><span class="line"></span><br><span class="line">.modify energy</span><br><span class="line"></span><br><span class="line">.modify faction 阵营</span><br><span class="line"></span><br><span class="line">.modify gender</span><br><span class="line"></span><br><span class="line">.modify honor 荣誉</span><br><span class="line"></span><br><span class="line">.modify hp 血量</span><br><span class="line"></span><br><span class="line">.modify integral</span><br><span class="line"></span><br><span class="line">.modify mana 魔法</span><br><span class="line"></span><br><span class="line">.modify money 金钱</span><br><span class="line"></span><br><span class="line">.modify morph 外观</span><br><span class="line"></span><br><span class="line">.modify mount 坐骑</span><br><span class="line"></span><br><span class="line">.modify phase </span><br><span class="line"></span><br><span class="line">.modify rage 怒气</span><br><span class="line"></span><br><span class="line">.modify rep 声望</span><br><span class="line"></span><br><span class="line">.modify runicpower 符文能量</span><br><span class="line"></span><br><span class="line">.modify scale 大小</span><br><span class="line"></span><br><span class="line">.modify speed 速度</span><br><span class="line"></span><br><span class="line">.modify spell 法术</span><br><span class="line"></span><br><span class="line">.modify standstate</span><br><span class="line"></span><br><span class="line">.modify swim 游泳速度</span><br><span class="line"></span><br><span class="line">.modify titles  头衔</span><br><span class="line"></span><br><span class="line">.modify tp 天赋点</span><br><span class="line"></span><br><span class="line">.npc add 添加NPC</span><br><span class="line"></span><br><span class="line">.npc additem 给NPC添加装备</span><br><span class="line"></span><br><span class="line">.npc addmove </span><br><span class="line"></span><br><span class="line">.npc addweapon</span><br><span class="line"></span><br><span class="line">.npc allowmove</span><br><span class="line"></span><br><span class="line">.npc changelevel</span><br><span class="line"></span><br><span class="line">.npc delete  删除NPC </span><br><span class="line"></span><br><span class="line">.npc delitem  删除NPC 里面的物品</span><br><span class="line"></span><br><span class="line">.npc set factionid  更改NPC 阵营 （红绿名字）</span><br><span class="line"></span><br><span class="line">.npc set  flag 更改NPC 属性 </span><br><span class="line"></span><br><span class="line">.npc follow 让NPC跟随你</span><br><span class="line"></span><br><span class="line">.npc info NPC信息</span><br><span class="line"></span><br><span class="line">.npc move 使NPC移动到自己当前位置</span><br><span class="line"></span><br><span class="line">.npc name</span><br><span class="line"></span><br><span class="line">.npc playemote</span><br><span class="line"></span><br><span class="line">.npc setdeathstate</span><br><span class="line"></span><br><span class="line">.npc setmodel 改变NPC外观</span><br><span class="line"></span><br><span class="line">.npc setmovetype </span><br><span class="line"></span><br><span class="line">.npc setphase</span><br><span class="line"></span><br><span class="line">.npc spawndist</span><br><span class="line"></span><br><span class="line">.npc spawntime</span><br><span class="line"></span><br><span class="line">.npc subname</span><br><span class="line"></span><br><span class="line">.npc tame 驯服一只野兽作为宠物</span><br><span class="line"></span><br><span class="line">.npc textemote</span><br><span class="line"></span><br><span class="line">.npc unfollow 让NPC停止跟随你</span><br><span class="line"></span><br><span class="line">.npc whisper 使NPC说话</span><br><span class="line"></span><br><span class="line">.quest add 增加任务</span><br><span class="line"></span><br><span class="line">.quest complete 完成任务</span><br><span class="line"></span><br><span class="line">.quest remove 移除任务</span><br><span class="line"></span><br><span class="line">.reload all 重新载入</span><br><span class="line"></span><br><span class="line">.reload all_area 重载所有地图</span><br><span class="line"></span><br><span class="line">.reload all_locales</span><br><span class="line"></span><br><span class="line">.reload all_loot 重载所有LOOT（BOSS掉落）</span><br><span class="line"></span><br><span class="line">.reload all_quest 重载所有任务</span><br><span class="line"></span><br><span class="line">.reload all_spell 重载所有技能</span><br><span class="line"></span><br><span class="line">.reload config 重载所有设置</span><br><span class="line"></span><br><span class="line">.repairitems 修理装备</span><br><span class="line"></span><br><span class="line">.reset achievements 重置成就</span><br><span class="line"></span><br><span class="line">.reset all 重置所有</span><br><span class="line"></span><br><span class="line">.reset honor 重置荣誉</span><br><span class="line"></span><br><span class="line">.reset level 重置级别</span><br><span class="line"></span><br><span class="line">.reset spells 重置法术</span><br><span class="line"></span><br><span class="line">.reset stats 重置属性</span><br><span class="line"></span><br><span class="line">.reset talents 天赋</span><br><span class="line"></span><br><span class="line">.respawn 重新刷新NPC（复活视野内NPC ) （选中单独复活）</span><br><span class="line"></span><br><span class="line">.revive 复活玩家</span><br><span class="line"></span><br><span class="line">.send items 寄送装备</span><br><span class="line"></span><br><span class="line">.send mail 邮件</span><br><span class="line"></span><br><span class="line">.send message 信息</span><br><span class="line"></span><br><span class="line">.send money 金钱</span><br><span class="line"></span><br><span class="line">.unban account 解封账号</span><br><span class="line"></span><br><span class="line">.unban character 解封角色</span><br><span class="line"></span><br><span class="line">.unban ip 解封IP</span><br></pre></td></tr></table></figure>
<h3 id="服务器命令"><a href="#服务器命令" class="headerlink" title="服务器命令"></a>服务器命令</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line"></span><br><span class="line">.server corpses</span><br><span class="line"></span><br><span class="line">.server exit 服务器退出</span><br><span class="line"></span><br><span class="line">.server idlerestart </span><br><span class="line"></span><br><span class="line">.server idlerestart cancel</span><br><span class="line"></span><br><span class="line">.server idleshutdown</span><br><span class="line"></span><br><span class="line">.server idleshutdown cancel</span><br><span class="line"></span><br><span class="line">.server info 服务器信息</span><br><span class="line"></span><br><span class="line">.server motd</span><br><span class="line"></span><br><span class="line">.server plimit </span><br><span class="line"></span><br><span class="line">.server restart 服务器重启</span><br><span class="line"></span><br><span class="line">.server restart cancel 取消服务器重启</span><br><span class="line"></span><br><span class="line">.server set loglevel</span><br><span class="line"></span><br><span class="line">.server set motd</span><br><span class="line"></span><br><span class="line">.server shutdown  关机</span><br><span class="line"></span><br><span class="line">.server shutdown cancel 取消关机</span><br></pre></td></tr></table></figure>

      
    </div>
    
    
    

    

    
      <div>
        <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
  <div>坚持原创技术分享，您的支持将鼓励我继续创作！</div>
  <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
    <span>打赏</span>
  </button>
  <div id="QR" style="display: none;">

    
      <div id="wechat" style="display: inline-block">
        <img id="wechat_qr" src="https://i.loli.net/2018/11/13/5be9fa265c642.jpg" alt="Whitehat 微信支付">
        <p>微信支付</p>
      </div>
    

    
      <div id="alipay" style="display: inline-block">
        <img id="alipay_qr" src="https://i.loli.net/2018/11/13/5be9fa265c642.jpg" alt="Whitehat 支付宝">
        <p>支付宝</p>
      </div>
    

    

  </div>
</div>

      </div>
    

    
      <div>
        <ul class="post-copyright">
  <li class="post-copyright-author">
    <strong>本文作者：</strong>
    Whitehat
  </li>
  <li class="post-copyright-link">
    <strong>本文链接：</strong>
    <a href="https://whitehat666.gitee.io/blog/8895/06/27/hello-world/" title="GM 常用命令（置顶）">https://whitehat666.gitee.io/blog/8895/06/27/hello-world/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>
    本博客所有文章除特别声明外，均采用 <a href="https://whitehat666.gitee.io/blog/" rel="external nofollow" target="_blank">坚持原创技术分享 转载请注明出处</a> 许可协议。转载请注明出处！
  </li>
</ul>

      </div>
    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/blog/2018/12/14/坐骑地球修改 - 副本/" rel="next" title="隐藏IP宙斯盾制作">
                <i class="fa fa-chevron-left"></i> 隐藏IP宙斯盾制作
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      <div id="lv-container" data-id="city" data-uid="MTAyMC80MDk1NS8xNzQ4MA=="></div>
    </div>

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="https://i.loli.net/2018/11/13/5be9fdb6b566a.jpeg" alt="Whitehat">
            
              <p class="site-author-name" itemprop="name">Whitehat</p>
              <p class="site-description motion-element" itemprop="description">精心整理 无私奉献</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/blog/archives">
              
                  <span class="site-state-item-count">15</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            

            

          </nav>

          
            <div class="feed-link motion-element">
              <a href="/blog/atom.xml" rel="alternate">
                <i class="fa fa-rss"></i>
                RSS
              </a>
            </div>
          

          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#目录"><span class="nav-number">1.</span> <span class="nav-text">目录</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#GM-常用命令"><span class="nav-number">1.1.</span> <span class="nav-text">GM 常用命令</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#DEBUG模式测试FWQ"><span class="nav-number">1.2.</span> <span class="nav-text">DEBUG模式测试FWQ</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#实用功能"><span class="nav-number">1.3.</span> <span class="nav-text">实用功能</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#服务器命令"><span class="nav-number">1.4.</span> <span class="nav-text">服务器命令</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2018</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Whitehat</span>

  
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-area-chart"></i>
    </span>
    
      <span class="post-meta-item-text">网站字总数&#58;</span>
    
    <span title="网站字总数">83.7k</span>
  
</div>

<!--
  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Gemini</a> v5.1.4</div>
-->


<span id="timeDate">载入天数...</span><span id="times">载入时分秒...</span>
<script>
    var now = new Date(); 
    function createtime() { 
        var grt= new Date("02/14/2018 12:49:00");//此处修改你的建站时间或者网站上线时间 
        now.setTime(now.getTime()+250); 
        days = (now - grt ) / 1000 / 60 / 60 / 24; dnum = Math.floor(days); 
        hours = (now - grt ) / 1000 / 60 / 60 - (24 * dnum); hnum = Math.floor(hours); 
        if(String(hnum).length ==1 ){hnum = "0" + hnum;} minutes = (now - grt ) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum); 
        mnum = Math.floor(minutes); if(String(mnum).length ==1 ){mnum = "0" + mnum;} 
        seconds = (now - grt ) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum); 
        snum = Math.round(seconds); if(String(snum).length ==1 ){snum = "0" + snum;} 
        document.getElementById("timeDate").innerHTML = "本站已安全运行 "+dnum+" 天 "; 
        document.getElementById("times").innerHTML = hnum + " 小时 " + mnum + " 分 " + snum + " 秒"; 
    } 
setInterval("createtime()",250);
</script>
        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  


  



  
  









  
  
    <script type="text/javascript" src="/blog/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/canvas-nest/canvas-nest.min.js"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/three/three.min.js"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/three/three-waves.min.js"></script>
  


  


  <script type="text/javascript" src="/blog/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/blog/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/blog/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/blog/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/blog/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/blog/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/blog/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  
    <script type="text/javascript">
      (function(d, s) {
        var j, e = d.getElementsByTagName(s)[0];
        if (typeof LivereTower === 'function') { return; }
        j = d.createElement(s);
        j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
        j.async = true;
        e.parentNode.insertBefore(j, e);
      })(document, 'script');
    </script>
  












  

  <script type="text/javascript">
    // Popup Window;
    var isfetched = false;
    var isXml = true;
    // Search DB path;
    var search_path = "search.xml";
    if (search_path.length === 0) {
      search_path = "search.xml";
    } else if (/json$/i.test(search_path)) {
      isXml = false;
    }
    var path = "/blog/" + search_path;
    // monitor main search box;

    var onPopupClose = function (e) {
      $('.popup').hide();
      $('#local-search-input').val('');
      $('.search-result-list').remove();
      $('#no-result').remove();
      $(".local-search-pop-overlay").remove();
      $('body').css('overflow', '');
    }

    function proceedsearch() {
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay"></div>')
        .css('overflow', 'hidden');
      $('.search-popup-overlay').click(onPopupClose);
      $('.popup').toggle();
      var $localSearchInput = $('#local-search-input');
      $localSearchInput.attr("autocapitalize", "none");
      $localSearchInput.attr("autocorrect", "off");
      $localSearchInput.focus();
    }

    // search function;
    var searchFunc = function(path, search_id, content_id) {
      'use strict';

      // start loading animation
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay">' +
          '<div id="search-loading-icon">' +
          '<i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>' +
          '</div>' +
          '</div>')
        .css('overflow', 'hidden');
      $("#search-loading-icon").css('margin', '20% auto 0 auto').css('text-align', 'center');

      $.ajax({
        url: path,
        dataType: isXml ? "xml" : "json",
        async: true,
        success: function(res) {
          // get the contents from search data
          isfetched = true;
          $('.popup').detach().appendTo('.header-inner');
          var datas = isXml ? $("entry", res).map(function() {
            return {
              title: $("title", this).text(),
              content: $("content",this).text(),
              url: $("url" , this).text()
            };
          }).get() : res;
          var input = document.getElementById(search_id);
          var resultContent = document.getElementById(content_id);
          var inputEventFunction = function() {
            var searchText = input.value.trim().toLowerCase();
            var keywords = searchText.split(/[\s\-]+/);
            if (keywords.length > 1) {
              keywords.push(searchText);
            }
            var resultItems = [];
            if (searchText.length > 0) {
              // perform local searching
              datas.forEach(function(data) {
                var isMatch = false;
                var hitCount = 0;
                var searchTextCount = 0;
                var title = data.title.trim();
                var titleInLowerCase = title.toLowerCase();
                var content = data.content.trim().replace(/<[^>]+>/g,"");
                var contentInLowerCase = content.toLowerCase();
                var articleUrl = decodeURIComponent(data.url);
                var indexOfTitle = [];
                var indexOfContent = [];
                // only match articles with not empty titles
                if(title != '') {
                  keywords.forEach(function(keyword) {
                    function getIndexByWord(word, text, caseSensitive) {
                      var wordLen = word.length;
                      if (wordLen === 0) {
                        return [];
                      }
                      var startPosition = 0, position = [], index = [];
                      if (!caseSensitive) {
                        text = text.toLowerCase();
                        word = word.toLowerCase();
                      }
                      while ((position = text.indexOf(word, startPosition)) > -1) {
                        index.push({position: position, word: word});
                        startPosition = position + wordLen;
                      }
                      return index;
                    }

                    indexOfTitle = indexOfTitle.concat(getIndexByWord(keyword, titleInLowerCase, false));
                    indexOfContent = indexOfContent.concat(getIndexByWord(keyword, contentInLowerCase, false));
                  });
                  if (indexOfTitle.length > 0 || indexOfContent.length > 0) {
                    isMatch = true;
                    hitCount = indexOfTitle.length + indexOfContent.length;
                  }
                }

                // show search results

                if (isMatch) {
                  // sort index by position of keyword

                  [indexOfTitle, indexOfContent].forEach(function (index) {
                    index.sort(function (itemLeft, itemRight) {
                      if (itemRight.position !== itemLeft.position) {
                        return itemRight.position - itemLeft.position;
                      } else {
                        return itemLeft.word.length - itemRight.word.length;
                      }
                    });
                  });

                  // merge hits into slices

                  function mergeIntoSlice(text, start, end, index) {
                    var item = index[index.length - 1];
                    var position = item.position;
                    var word = item.word;
                    var hits = [];
                    var searchTextCountInSlice = 0;
                    while (position + word.length <= end && index.length != 0) {
                      if (word === searchText) {
                        searchTextCountInSlice++;
                      }
                      hits.push({position: position, length: word.length});
                      var wordEnd = position + word.length;

                      // move to next position of hit

                      index.pop();
                      while (index.length != 0) {
                        item = index[index.length - 1];
                        position = item.position;
                        word = item.word;
                        if (wordEnd > position) {
                          index.pop();
                        } else {
                          break;
                        }
                      }
                    }
                    searchTextCount += searchTextCountInSlice;
                    return {
                      hits: hits,
                      start: start,
                      end: end,
                      searchTextCount: searchTextCountInSlice
                    };
                  }

                  var slicesOfTitle = [];
                  if (indexOfTitle.length != 0) {
                    slicesOfTitle.push(mergeIntoSlice(title, 0, title.length, indexOfTitle));
                  }

                  var slicesOfContent = [];
                  while (indexOfContent.length != 0) {
                    var item = indexOfContent[indexOfContent.length - 1];
                    var position = item.position;
                    var word = item.word;
                    // cut out 100 characters
                    var start = position - 20;
                    var end = position + 80;
                    if(start < 0){
                      start = 0;
                    }
                    if (end < position + word.length) {
                      end = position + word.length;
                    }
                    if(end > content.length){
                      end = content.length;
                    }
                    slicesOfContent.push(mergeIntoSlice(content, start, end, indexOfContent));
                  }

                  // sort slices in content by search text's count and hits' count

                  slicesOfContent.sort(function (sliceLeft, sliceRight) {
                    if (sliceLeft.searchTextCount !== sliceRight.searchTextCount) {
                      return sliceRight.searchTextCount - sliceLeft.searchTextCount;
                    } else if (sliceLeft.hits.length !== sliceRight.hits.length) {
                      return sliceRight.hits.length - sliceLeft.hits.length;
                    } else {
                      return sliceLeft.start - sliceRight.start;
                    }
                  });

                  // select top N slices in content

                  var upperBound = parseInt('1');
                  if (upperBound >= 0) {
                    slicesOfContent = slicesOfContent.slice(0, upperBound);
                  }

                  // highlight title and content

                  function highlightKeyword(text, slice) {
                    var result = '';
                    var prevEnd = slice.start;
                    slice.hits.forEach(function (hit) {
                      result += text.substring(prevEnd, hit.position);
                      var end = hit.position + hit.length;
                      result += '<b class="search-keyword">' + text.substring(hit.position, end) + '</b>';
                      prevEnd = end;
                    });
                    result += text.substring(prevEnd, slice.end);
                    return result;
                  }

                  var resultItem = '';

                  if (slicesOfTitle.length != 0) {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + highlightKeyword(title, slicesOfTitle[0]) + "</a>";
                  } else {
                    resultItem += "<li><a href='" + articleUrl + "' class='search-result-title'>" + title + "</a>";
                  }

                  slicesOfContent.forEach(function (slice) {
                    resultItem += "<a href='" + articleUrl + "'>" +
                      "<p class=\"search-result\">" + highlightKeyword(content, slice) +
                      "...</p>" + "</a>";
                  });

                  resultItem += "</li>";
                  resultItems.push({
                    item: resultItem,
                    searchTextCount: searchTextCount,
                    hitCount: hitCount,
                    id: resultItems.length
                  });
                }
              })
            };
            if (keywords.length === 1 && keywords[0] === "") {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-search fa-5x" /></div>'
            } else if (resultItems.length === 0) {
              resultContent.innerHTML = '<div id="no-result"><i class="fa fa-frown-o fa-5x" /></div>'
            } else {
              resultItems.sort(function (resultLeft, resultRight) {
                if (resultLeft.searchTextCount !== resultRight.searchTextCount) {
                  return resultRight.searchTextCount - resultLeft.searchTextCount;
                } else if (resultLeft.hitCount !== resultRight.hitCount) {
                  return resultRight.hitCount - resultLeft.hitCount;
                } else {
                  return resultRight.id - resultLeft.id;
                }
              });
              var searchResultList = '<ul class=\"search-result-list\">';
              resultItems.forEach(function (result) {
                searchResultList += result.item;
              })
              searchResultList += "</ul>";
              resultContent.innerHTML = searchResultList;
            }
          }

          if ('auto' === 'auto') {
            input.addEventListener('input', inputEventFunction);
          } else {
            $('.search-icon').click(inputEventFunction);
            input.addEventListener('keypress', function (event) {
              if (event.keyCode === 13) {
                inputEventFunction();
              }
            });
          }

          // remove loading animation
          $(".local-search-pop-overlay").remove();
          $('body').css('overflow', '');

          proceedsearch();
        }
      });
    }

    // handle and trigger popup window;
    $('.popup-trigger').click(function(e) {
      e.stopPropagation();
      if (isfetched === false) {
        searchFunc(path, 'local-search-input', 'local-search-result');
      } else {
        proceedsearch();
      };
    });

    $('.popup-btn-close').click(onPopupClose);
    $('.popup').click(function(e){
      e.stopPropagation();
    });
    $(document).on('keyup', function (event) {
      var shouldDismissSearchPopup = event.which === 27 &&
        $('.search-popup').is(':visible');
      if (shouldDismissSearchPopup) {
        onPopupClose();
      }
    });
  </script>





  

  

  

  
  

  

  

  

</body>
</html>
